cmake_minimum_required(VERSION 3.17)
project(include_dir_2)

set_property(DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES ${PROJECT_BINARY_DIR})
get_property(var0 DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message(STATUS "var0 = ${var0}")

#include_directories(hello)
#set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
#incldue_directories(hello)
#include_directories(AFTER hello)
include_directories(BEFORE hello)

add_executable(main main.cpp)

get_property(var1 DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message(STATUS "var1 = ${var1}")
